package org.oexam.ostudy.struct;

import java.util.Date;

import javax.persistence.Entity;
import javax.persistence.Id;

@Entity
public class Tests {

	@Id
	private int test_id;  // Primary key 
	private String test_name;
	private int no_of_questions;
	private int test_duration; 
	private Date test_date;
	
	private int test_set;  // Foreign Key referring to TestSet table;
	private int teacher;   // Foreign Key referring to Teacher table;
	
	private boolean isActive;
	
	public int getTest_id() {
		return test_id;
	}


	public void setTest_id(int test_id) {
		this.test_id = test_id;
	}


	public String getTest_name() {
		return test_name;
	}


	public void setTest_name(String test_name) {
		this.test_name = test_name;
	}


	public int getNo_of_questions() {
		return no_of_questions;
	}


	public void setNo_of_questions(int no_of_questions) {
		this.no_of_questions = no_of_questions;
	}


	public int getTest_duration() {
		return test_duration;
	}


	public void setTest_duration(int test_duration) {
		this.test_duration = test_duration;
	}


	public Date getTest_date() {
		return test_date;
	}


	public void setTest_date(Date test_date) {
		this.test_date = test_date;
	}


	public int getTest_set() {
		return test_set;
	}


	public void setTest_set(int test_set) {
		this.test_set = test_set;
	}


	public int getTeacher() {
		return teacher;
	}


	public void setTeacher(int teacher) {
		this.teacher = teacher;
	}


	public boolean isActive() {
		return isActive;
	}


	public void setActive(boolean isActive) {
		this.isActive = isActive;
	}



	
	
	
	
}
